<?php

namespace Acme\EventBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="feedback")
 * @ORM\Entity(repositoryClass="Acme\EventBundle\Entity\FeedbackRepository")
 */
class Feedback {
	/**
	 * @ORM\Column(type="integer")
	 * @ORM\Id
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	protected $id;
	
	/**
	 * @ORM\Column(type="integer")
	 */
	protected $inscription_id;
	
	/**
	 * @ORM\ManyToOne(targetEntity="Inscription",inversedBy="feedbacks")
	 * @ORM\JoinColumn(name="inscription_id", referencedColumnName="id")
	 */
	protected $inscription;
	
	/**
	 * @ORM\Column(type="datetime")
	 */
	protected $datum;
	
	/**
	 * @ORM\Column(type="text")
	 */
	protected $answer;
	
	/**
	 * Constructor
	 */
	public function __construct() {
	}
	
	/**
	 * Get id
	 *
	 * @return integer
	 */
	public function getId() {
		return $this->id;
	}
	
	/**
	 * Set inscription
	 *
	 * @param integer $inscription        	
	 * @return Feedback
	 */
	public function setInscription($inscription) {
		$this->inscription = $inscription;
		
		return $this;
	}
	
	/**
	 * Get inscription
	 *
	 * @return integer
	 */
	public function getInscription() {
		return $this->inscription;
	}
	
	/**
	 * Set participate
	 *
	 * @param integer $participate        	
	 * @return Feedback
	 */
	public function setParticipate($participate) {
		$this->participate = $participate;
		
		return $this;
	}
	
	/**
	 * Get participate
	 *
	 * @return integer
	 */
	public function getParticipate() {
		return $this->participate;
	}
	
	/**
	 * Set datum
	 *
	 * @param \DateTime $datum        	
	 * @return Feedback
	 */
	public function setDatum($datum) {
		$this->datum = $datum;
		
		return $this;
	}
	
	/**
	 * Get datum
	 *
	 * @return \DateTime
	 */
	public function getDatum() {
		return $this->datum;
	}
	
	/**
	 * Set answer
	 *
	 * @param string $answer        	
	 * @return Feedback
	 */
	public function setAnswer($answer) {
		$this->answer = $answer;
		
		return $this;
	}
	
	/**
	 * Get answer
	 *
	 * @return string
	 */
	public function getAnswer() {
		return $this->answer;
	}
	
	/**
	 * Set inscription_id
	 *
	 * @param integer $inscriptionId        	
	 * @return Feedback
	 */
	public function setInscriptionId($inscriptionId) {
		$this->inscription_id = $inscriptionId;
		
		return $this;
	}
	
	/**
	 * Get inscription_id
	 *
	 * @return integer
	 */
	public function getInscriptionId() {
		return $this->inscription_id;
	}
}